home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 June / PCWorld_2007-06_cd.bin / v cisle / tclock / tclocklight-040702-3.exe / source / exe / main.c < prev    next >
C/C++ Source or Header  |  2003-12-27  |  855b  |  33 lines

  1. /*-------------------------------------------------------------
  2.   main.c : entry point of tclock.exe
  3.   (C) 1997-2003 Kazuto Sato
  4.   Please read readme.txt about the license.
  5.   
  6.   Written by Kazubon, Nanashi-san
  7. ---------------------------------------------------------------*/
  8.  
  9. #include "tclock.h"
  10.  
  11. /* Globals */
  12.  
  13. HINSTANCE g_hInst;  // instance handle
  14.  
  15. /*----------------------------------------------------------
  16.   TClock doesn't use "WinMain" for compacting the file size
  17. -----------------------------------------------------------*/
  18. #ifdef NODEFAULTLIB
  19. void WINAPI WinMainCRTStartup(void)
  20. {
  21.     g_hInst = GetModuleHandle(NULL);
  22.     ExitProcess(TClockExeMain());
  23. }
  24. #else
  25. int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
  26.     LPSTR lpCmdLine, int nCmdShow)
  27. {
  28.     g_hInst = hInstance;
  29.     return TClockExeMain();
  30. }
  31. #endif
  32.  
  33.